package cn.myspringboot.openfeign;

import cn.myspringboot.constants.AllConsts;
import cn.myspringboot.result.JSONResult;
import cn.myspringboot.vo.LoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = AllConsts.Remote.SERVICE_NAME_UAA,fallback = UaaOpenFeignFallbackFactory.class)
public interface UaaOpenFeign {

    @PostMapping(AllConsts.Remote.REMOTE_PREFLIX+"/register")
    public JSONResult register(@RequestBody @Valid LoginVo loginVo);

}
